export default [
  //文档库
  {
    path: "/documentLibrary",
    name: "documentLibrary",
    icon: "documentLibrary.png",
    component: "./KnowledgeFile/docLibrary",
    authority: ["documentLibrary"],
  },
  {
    path: "/documentLibrary/docLibrarySetting",
    name: "docLibrarySetting",
    component: "./KnowledgeFile/docLibrarySetting",
    hideInMenu: true,
  },
  {
    path: "/documentLibrary/:id/file",
    component: "./KnowledgeFile/index",
    hideInMenu: true,
  },
  {
    path: "/documentLibrary/:id/file/addMarkdown",
    component: "./KnowledgeFile/editFile/addMarkdown",
    hideInMenu: true,
  },
  {
    path: "/documentLibrary/:id/file/addFile",
    component: "./KnowledgeFile/editFile/addFile",
    hideInMenu: true,
  },
  {
    path: "/documentLibrary/:id/file/preview",
    component: "./KnowledgeFile/editFile/preview",
    hideInMenu: true,
  },

  //知识设计
  {
    path: "/knowledgeDesign",
    name: "knowledgeDesign",
    authority: [
      "knowledgeBase",
      "knowledgeCollect",
      "userTag",
      "knowledgeTag",
      "customDictionary",
      "wordTroughManage",
      "customApi",
      "businessDictionary",
      "thesaurusManage",
      "answerLibrary",
    ],
    icon: "knowledgeDesign.png",
    routes: [
      //FAQ和流程
      {
				path: "/knowledgeDesign/myKnowledge",
				name: "myKnowledge",
				component: "./SystemKnowledgeBase",
				hideInMenu: false,
				authority: ["knowledgeBase"],
			},
			{
				path: "/knowledgeDesign/myKnowledge/:id",
				name: "myKnowledgeDetail",
				component: "./SystemKnowledgeBase/detail",
				hideInMenu: true,
				routes: [
					{
						path: "/knowledgeDesign/myKnowledge/:id/qa",
						component: "./KnowledgeManagement/Overview/Index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/graph",
						component: "./knowledgeGraph/tabCategory/tabCategory",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/graph/edit",
						component: "./knowledgeGraph/graphMap/index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/dialog",
						component: "./Dialog/tabCategory/tabCategory",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/dialog/add",
						component: "./Dialog/Add/index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/file",
						component: "./KnowledgeFile/index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/file/add",
						component: "./KnowledgeFile/editFile/addMarkdown",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/file/preview",
						component: "./KnowledgeFile/editFile/preview",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/formInteraction",
						component: "./FormInteraction/tabCategory",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/formInteraction/edit",
						component: "./FormInteraction/editing",
						hideInMenu: true,
						routes: [
							{
								path: "/knowledgeDesign/myKnowledge/:id/formInteraction/edit/flow",
								component: "./FormInteraction/flow/index",
								hideInMenu: true,
							},
							{
								path: "/knowledgeDesign/myKnowledge/:id/formInteraction/edit/field",
								component: "./FormInteraction/field/index",
								hideInMenu: true,
							},
							{
								path: "/knowledgeDesign/myKnowledge/:id/formInteraction/edit/dictionary",
								component: "./FormInteraction/dictionary/index",
								hideInMenu: true,
							},
							{
								path: "/knowledgeDesign/myKnowledge/:id/formInteraction/edit/dictionaryEdit",
								component: "./FormInteraction/dictionary/dictionaryEdit",
								hideInMenu: true,
							},
							{
								path: "/knowledgeDesign/myKnowledge/:id/formInteraction/edit/report",
								component: "./FormInteraction/report/index",
								hideInMenu: true,
							},
						]
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/keywordReply",
						component: "./KnowledgeManagement/AntistopReply/Index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/keywordReply/add",
						component: "./KnowledgeManagement/AntistopReply/addText",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/myKnowledge/:id/keywordReply/edit/:keywordId",
						component: "./KnowledgeManagement/AntistopReply/editText",
						hideInMenu: true,
					},
				],
			},

      //系统知识库
			{
				path: "/knowledgeDesign/systemKnowledge",
				name: "systemKnowledge",
				icon: "systemKnowledge.png",
				component: "./SystemKnowledgeBase",
				hideInMenu: false,
				authority: ["systemKnowledge"],
			},
			{
				path: "/knowledgeDesign/systemKnowledge/:id",
				name: "systemKnowledgeDetail",
				component: "./SystemKnowledgeBase/detail",
				hideInMenu: true,
				routes: [
					{
						path: "/knowledgeDesign/systemKnowledge/:id/qa",
						component: "./KnowledgeManagement/Overview/Index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/graph",
						component: "./knowledgeGraph/tabCategory/tabCategory",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/graph/edit",
						component: "./knowledgeGraph/graphMap/index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/dialog",
						component: "./Dialog/tabCategory/tabCategory",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/dialog/add",
						component: "./Dialog/Add/index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/file",
						component: "./KnowledgeFile/index",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/file/add",
						component: "./KnowledgeFile/editFile/addMarkdown",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/file/preview",
						component: "./KnowledgeFile/editFile/preview",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/formInteraction",
						component: "./FormInteraction/tabCategory",
						hideInMenu: true,
					},
					{
						path: "/knowledgeDesign/systemKnowledge/:id/formInteraction/edit",
						component: "./FormInteraction/editing",
						hideInMenu: true,
						routes: [
							{
								path: "/knowledgeDesign/systemKnowledge/:id/formInteraction/edit/flow",
								component: "./FormInteraction/flow/index",
								hideInMenu: true,
							},
							{
								path: "/knowledgeDesign/systemKnowledge/:id/formInteraction/edit/field",
								component: "./FormInteraction/field/index",
								hideInMenu: true,
							},
							{
								path: "/knowledgeDesign/systemKnowledge/:id/formInteraction/edit/dictionary",
								component: "./FormInteraction/dictionary/index",
								hideInMenu: true,
							},
							{
								path: "/knowledgeDesign/systemKnowledge/:id/formInteraction/edit/dictionaryEdit",
								component: "./FormInteraction/dictionary/dictionaryEdit",
								hideInMenu: true,
							},
							{
								path: "/knowledgeDesign/systemKnowledge/:id/formInteraction/edit/report",
								component: "./FormInteraction/report/index",
								hideInMenu: true,
							},
						]
					},
				],
			},

      // 知识采编
      {
				path: '/knowledgeDesign/knowledgeCollect',
				name: 'knowledgeCollect',
				component: "./KnowledgeGather/knowledgeGather",
				authority: ['knowledgeCollect'],
			},
			{	// 知识采编 - 预览上传文档
				path: '/knowledgeDesign/knowledgeCollect/addUploadFile',
				component: "./KnowledgeGather/previewFile",
				hideInMenu: true,
			},
			{	// 知识采编 - 添加自定义文档
				path: '/knowledgeDesign/knowledgeCollect/addMarkdownFile',
				component: "./KnowledgeGather/addMarkdownFile",
				hideInMenu: true,
			},
			{	// 知识采编 - 生成问题·进度条
				path: '/knowledgeDesign/knowledgeCollect/generateQuestion',
				component: "./KnowledgeGather/generateQuestion",
				hideInMenu: true,
			},
			{	// 知识采编 - 生成问题·问题库
				path: '/knowledgeDesign/knowledgeCollect/questionLibrary',
				component: "./KnowledgeGather/questionLibrary",
				hideInMenu: true,
			},
			{	// 知识采编 - 生成问题·相似问题
				path: '/knowledgeDesign/knowledgeCollect/similarQuestionList',
				component: "./KnowledgeGather/similarQuestionList",
				hideInMenu: true,
			},
			{	// 知识采编 - 生成答案
				path: '/knowledgeDesign/knowledgeCollect/generateAnswer',
				component: "./KnowledgeGather/generateAnswer",
				hideInMenu: true,
			},
			{	// 知识采编 - 问题·答案 列表
				path: '/knowledgeDesign/knowledgeCollect/questionAnswerList',
				component: "./KnowledgeGather/questionAnswerList",
				hideInMenu: true,
			},
			{	// 知识采编 - 问题·答案 详情
				path: '/knowledgeDesign/knowledgeCollect/previewQADetail',
				component: "./KnowledgeGather/previewQADetail",
				hideInMenu: true,
			},

      //用户标签
      {
        path: "/knowledgeDesign/labelManage",
        name: "labelManage",
        component: "./Account/labelManage/index",
        authority: ["userTag"],
      },

      //知识标签
      {
        path: "/knowledgeDesign/knowledgeLabel",
        name: "knowledgeLabel",
        component: "./Account/knowledgeLabel/index",
        authority: ["knowledgeTag"],
      },

      //实体管理
      {
        path: "/knowledgeDesign/customDictionary",
        name: "customDictionary",
        component: "./BasicCapacity/CustomDictionary/Index",
        authority: ["customDictionary"],
      },
      {
        path: "/knowledgeDesign/customDictionary/enumerable/:id/:urlPrefix?",
        component: "./BasicCapacity/CustomDictionary/enumerableNew",
        hideInMenu: true,
      },
      {
        path: "/knowledgeDesign/customDictionary/noEnumerationNew/:id/:urlPrefix?",
        component: "./BasicCapacity/CustomDictionary/noEnumerationNew",
        hideInMenu: true,
      },

      //词槽管理
      {
        path: "/knowledgeDesign/wordTroughManage",
        name: "wordTroughManage",
        component: "./BasicCapacity/WordTroughManage/Index",
        authority: ["wordTroughManage"],
      },

      //自定义API
      {
        path: "/knowledgeDesign/customApi/",
        name: "customApi",
        component: "./BasicCapacity/CustomApi/Index",
        authority: ["customApi"],
      },
      {
        path: "/knowledgeDesign/customApi/edit/:id?/:urlPrefix?",
        name: "customApiEdit",
        component: "./BasicCapacity/CustomApi/Edit",
        hideInMenu: true,
      },
      {
        path: "/knowledgeDesign/customApi/testApi",
        name: "customApiTest",
        component: "./BasicCapacity/CustomApi/testApi",
        hideInMenu: true,
      },

      //业务词库
      {
        path: "/knowledgeDesign/businessDictionary",
        name: "businessDictionary",
        component: "./BasicCapacity/businessDictionary/Index",
        authority: ["businessDictionary"],
      },

      //同义词管理
      {
        path: "/knowledgeDesign/thesaurusManage",
        name: "thesaurusManage",
        component: "./BasicCapacity/ThesaurusManage/Index",
        authority: ["thesaurusManage"],
      },

      //答案库
      {
				path: "/knowledgeDesign/answerLibrary",
				name: "answerLibrary",
				component: "./KnowledgeManagement/AnswerLibrary/index",
				authority: ["answerLibrary"],
			},
    ]
  },

  //问答分析
  {
    path: "/waitingLearningIssue",
    name: "waitingLearningIssue",
    component: "./CapacityStudy/WaitingLearningIssue/Index",
    authority: ["issueAnalysis"],
    icon:"waitingLearningIssue.png"
  },

  //知识统计
  {
    path: "/knowledgeCenter",
    name: "knowledgeCenter",
    icon: "knowledgeCenter.png",
    component: "./HomeList/knowledgeCenter",
    authority: ["knowledgeStats"],
    hideInMenu: false,
  },

  //智能学习
  /* {
    path: "/capacity",
    name: "capacityStudy",
    icon: "capacity.png",
    hideInMenu: false,
    authority: [
      "capacity",
      "knowledgeSmartMaintenance",
      "medicalKnowledge",
    ],
    routes: [
      {
        path: "/capacity/medicalKnowledge",
        name: "medicalKnowledge",
        component: "./CapacityStudy/medicalKnowledge/Index",
        authority: ["medicalKnowledge"],
      },
      {
        path: "/capacity/medicalKnowledge/detail",
        component: "./CapacityStudy/medicalKnowledge/twoIndex",
      },
      {
        path: "/capacity/knowledgeSmartMaintenance",
        name: "knowledgeSmartMaintenance",
        component: "./CapacityStudy/knowledgeSmartMaintenance/Index",
        authority: ["knowledgeSmartMaintenance"],
      },
      {
        path: "/capacity/knowledgeSmartMaintenance/CheckList",
        component: "./CapacityStudy/knowledgeSmartMaintenance/CheckList",
        hideInMenu: true,
      },
      {
        path: "/capacity/knowledgeSmartMaintenance/theBlacklist",
        component: "./CapacityStudy/knowledgeSmartMaintenance/theBlacklist",
        hideInMenu: true,
      },
      {
        path: "/capacity/knowledgeSmartMaintenance/problemRecommendedList",
        component:
          "./CapacityStudy/knowledgeSmartMaintenance/problemRecommendedList",
        hideInMenu: true,
      },
      {
        path: "/capacity/knowledgeSmartMaintenance/clusteringProblem",
        component:
          "./CapacityStudy/knowledgeSmartMaintenance/clusteringProblem",
        hideInMenu: true,
      },
      {
        path: "/capacity/knowledgeSmartMaintenance/recommendedTreatment",
        component:
          "./CapacityStudy/knowledgeSmartMaintenance/recommendedTreatment",
        hideInMenu: true,
      },
      {
        path: "/capacity/knowledgeSmartMaintenance/clusterView",
        component: "./CapacityStudy/knowledgeSmartMaintenance/clusterView",
        hideInMenu: true,
      },
    ],
  }, */
]
